﻿using SqlSugar;

namespace Hospital.Model.entity
{
    public class Patient : BaseId
    {
        [SugarColumn(Length = 10)]
        public string Name { get; set; } //患者名称
        [SugarColumn(Length = 2)]
        public string Gender { get; set; }
        public int Age { get; set; }
        [SugarColumn(Length = 20)]
        public string ContactPhone { get; set; }
        [SugarColumn(Length = 30)]
        public string Address { get; set; }
        [SugarColumn(IsNullable = true, Length = 10)]
        public string WardNumber { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Ward Ward { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<Registration> Registrations { get; set; } = [];
        [SugarColumn(IsIgnore = true)]
        public List<VisitRecords> VisitRecords { get; set; } = [];
    }
}
